#!/bin/bash

# 将服务器各种服务开机自启

REMOTE_HOST="root@8.220.215.26"

echo "设置nginx开机自启"
systemctl enable nginx

echo "设置coturn开机自启"
systemctl enable coturn

echo "重启coturn服务"
systemctl restart coturn

echo "设置redis-server开机自启"
systemctl enable redis-server

echo "重启redis-server服务"
systemctl restart redis-server

echo "设置mariadb开机自启"
systemctl enable mariadb

echo "重启mariadb服务"
systemctl restart mariadb

echo "设置后端服务main-auto开机自启"
systemctl enable main-auto

echo "执行数据库初使化脚本..."
mysql -u root -p'aA.879632437' < /init/mariadb-init.sql 




